package com.example.springbootlearn.config;


import com.example.springbootlearn.entity.User;

import java.sql.SQLException;

public class MiniORMTest {
    public void miniOrmTest() throws SQLException, ClassNotFoundException, IllegalAccessException, NoSuchFieldException, InstantiationException {
        ORMConfig config = new ORMConfig();
        System.out.println(config);
        ORMSession ormSession = config.buildSession();
        User one = (User)ormSession.findOne(User.class, 1);
        System.out.println(one);
    }
}
